class Task
{
public:
    Task();
    virtual ~Task();
    //虚函数
    virtual void process()=0;
};

class MyTask
:public Task
{
public:
    ~MyTask() override;
    void process() override;
};
